<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生管理系统</title>

</head>
<body>
    <div>
        <form action="/stu/add" method="post">
        <label for="name">姓名</label>
        <input type="text" name="name" id="name"> <br/>
        <label for="age">年龄</label>
        <input type="text" name="age" id="age"> <br/>
        <label for="s_class">班级</label>
        <input type="text" name="s_class" id="s_class"> <br/>
        <label for="email">邮箱</label>
        <input type="text" name="email" id="email"> <br/>
        <label for="address">地址</label>
        <input type="text" name="address" id="address"> <br/>
        <input type="submit" value="提交">
        <button><a href="/stu/student">返回</a></button>
        </form>
        {% if error %}
            <p style="color:red;"> {{ error }}</p>
        {% endif %}
    </div>


</body>
</html>